import Layout from "@/layout";

export default {
  path: "/approvals",
  component: Layout,
  name: "approvals",
  children: [
    {
      path: "",
      name: "approvals",
      component: () => import("@/views/approvals"),
      meta: {
        title: "审批",
        icon: "tree-table"
      }
    },
    {
      path: "salaryApproval/:id",
      component: () => import("@/views/approvals/salary"),
      name: "salaryApproval",
      hidden: true,
      meta: {
        title: "工资审核",
        icon: "approval",
        noCache: true
      }
    },
    {
      path: "enterApproval/:id",
      component: () => import("@/views/approvals/enter"),
      name: "enterApproval",
      hidden: true,
      meta: {
        title: "入职审核",
        icon: "approval",
        noCache: true
      }
    },
    {
      path: "leaveApproval/:id",
      component: () => import("@/views/approvals/leave"),
      name: "leaveApproval",
      hidden: true,
      meta: {
        title: "申请请假",
        icon: "approval",
        noCache: true
      }
    },
    {
      path: "quitApproval/:id",
      component: () => import("@/views/approvals/quit"),
      name: "quitApproval",
      hidden: true,
      meta: {
        title: "申请离职",
        icon: "approval",
        noCache: true
      }
    },
    {
      path: "overtimeApproval/:id",
      component: () => import("@/views/approvals/overtime"),
      name: "overtimeApproval",
      hidden: true,
      meta: {
        title: "加班申请",
        icon: "approval",
        noCache: true
      }
    },
    {
      path: "securitySetting",
      component: () => import("@/views/approvals/security"),
      name: "securitySetting",
      hidden: true,
      meta: {
        title: "设置",
        icon: "approval",
        noCache: true
      }
    }
  ]
};
